<?php

declare(strict_types=1);

namespace App\CustHub\Amqp\Producers;

use App\CustHub\Dto\CommonProducersDto;
use Hyperf\Amqp\Annotation\Producer;
use Hyperf\Amqp\Message\ProducerMessage;

#[Producer(exchange: "common_exchange",routingKey: "common_exchange")]
class CommonProducers extends ProducerMessage
{
    public function __construct(CommonProducersDto $data)
    {
        $this->payload = $data;
    }
}